#ifndef __ST7735__H
#define __ST7735__H

#ifdef __cplusplus
extern "C" {
#endif

#include "main.h"

#define RED  	0xf800
#define GREEN	0x07e0
#define BLUE 	0x001f
#define WHITE	0xffff
#define BLACK	0x0000
#define YELLOW  0xFFE0
#define GRAY0   0xEF7D   	//灰色0 3165 00110 001011 00101
#define GRAY1   0x8410      	//灰色1      00000 000000 00000
#define GRAY2   0x4208      	//灰色2  1111111111011111


void Lcd_Init(void);
void LCD_fillScreen(uint16_t color);
void LCD_DrawPoint(uint16_t x,uint16_t y,uint16_t Data);
void LCD_ShowImg(const uint8_t* img);

#ifdef __cplusplus
}
#endif

#endif //__ST7735__H
